package com.yfp.client.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 小程序banner
 * @TableName mini_banner
 */
@TableName(value ="mini_banner")
@Data
@ApiModel("小程序Banner")
public class MiniBanner implements Serializable {
    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @ApiModelProperty("名称")
    private String name;
    @ApiModelProperty("小程序位置1首页轮播2首页底部图3首页弹窗4吃饭轮播")
    private Integer position;
    @ApiModelProperty("图片地址")
    private String img;
    @ApiModelProperty("跳转地址http开头跳转外部地址，其他跳转小程序页面")
    private String url;
    @ApiModelProperty("备注")
    private String remark;
    @ApiModelProperty("创建时间")
    private Date createTime;
    @ApiModelProperty("创建用户ID")
    private Long createUserId;
    @ApiModelProperty("编辑时间")
    private Date updateTime;
    @ApiModelProperty("编辑用户ID")
    private Long updateUserId;
    @ApiModelProperty("关联营销ID")
    private Long marketingId;
    @ApiModelProperty("排序")
    private Integer sort;
    @ApiModelProperty("关联点位类型: 0全部点位 1部分点位")
    private Integer positionType;
    @ApiModelProperty("状态1进行中0删除2失效3已过期4待开始")
    private Integer marketingStatus;
    @TableField(exist = false)
    @ApiModelProperty("类型0其他  1优惠券2是邀请有礼3礼包4抽奖5打卡")
    private Integer marketingType;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}